import request from '@/utils/request'

// 查询查看项数据信息集列表
export function listDataInfo(query) {
  return request({
    url: '/teacher/dataInfo/list',
    method: 'get',
    params: query
  })
}

// 查询查看项数据信息集详细
export function getDataInfo(recordid) {
  return request({
    url: '/teacher/dataInfo/' + recordid,
    method: 'get'
  })
}

// 新增查看项数据信息集
export function addDataInfo(data) {
  return request({
    url: '/teacher/dataInfo',
    method: 'post',
    data: data
  })
}

// 修改查看项数据信息集
export function updateDataInfo(data) {
  return request({
    url: '/teacher/dataInfo',
    method: 'put',
    data: data
  })
}

// 删除查看项数据信息集
export function delDataInfo(recordid) {
  return request({
    url: '/teacher/dataInfo/' + recordid,
    method: 'delete'
  })
}

// 导出查看项数据信息集
export function exportDataInfo(query) {
  return request({
    url: '/teacher/dataInfo/export',
    method: 'get',
    params: query
  })
}